package com.tensquare.article.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tensquare.article.mapper.ColumnMapper;
import com.tensquare.article.domain.Column;
import com.tensquare.article.service.IColumnService;

/**
 * 专栏Service业务层处理
 * 
 * @author hbxfwf
 * @date 2021-08-25
 */
@Service
public class ColumnServiceImpl implements IColumnService 
{
    @Autowired
    private ColumnMapper columnMapper;

    /**
     * 查询专栏
     * 
     * @param id 专栏主键
     * @return 专栏
     */
    @Override
    public Column selectColumnById(String id)
    {
        return columnMapper.selectColumnById(id);
    }

    /**
     * 查询专栏列表
     * 
     * @param column 专栏
     * @return 专栏
     */
    @Override
    public List<Column> selectColumnList(Column column)
    {
        return columnMapper.selectColumnList(column);
    }

    /**
     * 新增专栏
     * 
     * @param column 专栏
     * @return 结果
     */
    @Override
    public int insertColumn(Column column)
    {
        return columnMapper.insertColumn(column);
    }

    /**
     * 修改专栏
     * 
     * @param column 专栏
     * @return 结果
     */
    @Override
    public int updateColumn(Column column)
    {
        return columnMapper.updateColumn(column);
    }

    /**
     * 批量删除专栏
     * 
     * @param ids 需要删除的专栏主键
     * @return 结果
     */
    @Override
    public int deleteColumnByIds(String[] ids)
    {
        return columnMapper.deleteColumnByIds(ids);
    }

    /**
     * 删除专栏信息
     * 
     * @param id 专栏主键
     * @return 结果
     */
    @Override
    public int deleteColumnById(String id)
    {
        return columnMapper.deleteColumnById(id);
    }
}
